Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CA2021 false positive casting from value type constraint to Enum or ValueType #7575

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fowl2
Copy link
Contributor

@fowl2 fowl2 commented Feb 14, 2025

fixes #7031

@fowl2 fowl2 requested a review from a team as a code owner February 14, 2025 00:49
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.54%. Comparing base (8fe7aeb) to head (a5b65ad).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7575   +/-   ##
=======================================
  Coverage   96.54%   96.54%           
=======================================
  Files        1454     1454           
  Lines      352505   352574   +69     
  Branches    11478    11478           
=======================================
+ Hits       340329   340399   +70     
+ Misses       9262     9261    -1     
  Partials     2914     2914           

@fowl2 fowl2 changed the title fix CA2021 false positive casting from value type constraint to Enum or ValeType fix CA2021 false positive casting from value type constraint to Enum or ValueType Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CA2021: false positive with ValueType and Enum
1 participant